from django.urls import path
from . import views

app_name = 'cms'

urlpatterns = [
    path('login/', views.login_view, name='login'),
    path('', views.index, name='index'),
    path('write_article/', views.WriteArticle.as_view(), name='write_article'),
    path('edit_article/', views.EditArticleView.as_view(),name='edit_article'),
    path('delete_article/', views.delete_article, name='delete_article'),
    path('article_category/', views.article_category, name='article_category'),
    path('add_article_category/', views.add_article_category, name='add_article_category'),
    path('edit_article_category/', views.edit_article_category, name='edit_article_category'),
    path('delete_article_category/', views.delete_article_category, name='delete_article_category'),
    path('banners/', views.banners, name='banners'),
    path('add_banner/', views.add_banner, name='add_banner'),
    path('banner_list/', views.banner_list, name='banner_list'),
    path('delete_banner/', views.delete_banner, name='delete_banner'),
    path('edit_banner/', views.edit_banner, name='edit_banner'),
    path('article_list/', views.ArticleListView.as_view(), name='article_list'),
    path('ad_list/', views.ad_list, name='ad_list'),
    path('upload_file/', views.upload_file, name='upload'),
    path('juhesign/', views.juhesign, name='juhesign')
]
